<?php $this->load->view('frontend/header_layout'); ?>
<div class="row">
    <?php echo $breackcrumb; ?>
    <table class="table table-bordered">
        <thead class="center">
            <tr>
                <th class="span8">Threads</th>
                <th class="span1">Replies</th>
                <th class="span1">Views</th>
                <th class="span2">Last Post</th>
            </tr>
        </thead>
        <tbody>
            <?php
            if ($results) {
                foreach ($results as $row) {
                    ?>
                    <tr>
                        <td>	
                            <?php echo anchor('chat_topic/reply_view/' . $row->thread_id, $row->thread_title); ?>
                            <p ><i><small></small>By :<?php
                    $authors = $this->chat_topic_m->get_author($row->thread_author);
                    foreach ($authors as $author) {
                        echo $author->user_name . '>>' . $row->thread_dated;
                    }
                            ?>
                                    </small></i></p>
                        </td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <?php
                }
            }else{
				echo "<h3>No record found</h3>";
			}
            ?>
        </tbody>

    </table>


</div>